<%--
 *  File:    ChartofGLAccountUsedOrgList.jsp
 *  @Author: Stephen Liu
 *  Date:    Saturday, January 17, 2004

 *  Copyright (C) 2000 - 2001 Oval Technologies, Inc.
 *  All rights reserved.
 *
 *  This software is the confidential and proprietary information of Oval
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>

<%@ page language="java" %>
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>
<%@ page import="com.oval.util.*" %>

<%@ page contentType ="text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>

<%
  Category cat = Category.getInstance("jsp.ChartofGLAccountUsedOrgList");
  String strModuleName = "GL";
  String privilegeCode = "40108";
%>

<%@include file="/inc/PageDefault.inc"%>
<%@include file="/inc/SessionTimeout.inc"%>
<%@include file="/inc/Security.inc"%>

<html>
<head>
<title>chartofglaccountusedorglist</title>
<PageFlow:CheckPageFlow pageName="chartofglaccountusedorglist"/>
<%
  Vector usedorglist = (Vector) pageContext.getAttribute("usedorglist");
  if (usedorglist == null)
    usedorglist = new Vector();

  String strClassType = "none";
%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../css/<%= strLanguageCode %>/main.css" type="text/css">
<script language="JavaScript" src="../css/<%= strLanguageCode %>/script.js"></script>
<script language="JavaScript" src="../js/ScriptLib.js"></script>
</head>
<body>
<form name="frm" method="post" action="../Dispatcher">
  <table width="100%" cellspacing="0" border="0" cellpadding="0">
    <tr>
      <td>
        <table width="100%" border="0" cellspacing="0">
          <tr>
            <td><img src="../images/<%= strLanguageCode %>/quote.gif" width="16" height="11">
              <%= label.getLabelName("L_UsedOrg") %><%= label.getLabelName("L_Colon") %> </td>
            <td>&nbsp;</td>
          </tr>
        </table>
        <table width="100%" border="1" cellpadding="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" cellspacing="0" align="center">
          <tr class="deepblue-left">
            <td width="100" class="title_center"><%= label.getLabelName("L_BookSet") %></td>
            <td class="title_center" width="80"><%= label.getLabelName("L_OrgCode") %></td>
            <td class="title_center"><%= label.getLabelName("L_OrgName") %></td>
          </tr>
          <logic:iterate id="list" collection="<%= usedorglist %>" indexId="idx">
          <%
            int i = idx.intValue();
            strClassType = (i % 2 == 1) ? "td-listrom" : "none";
          %>
          <tr onMouseOver="this.className='tr-over'" onMouseOut="this.className='td-listrom'" class="td-listrom">
            <td><a href="../masterdata/spm/BookSetInfo.jsp?<%= OvalTools.randomURL() %>&booksetid=<custom:write name="list" property="booksetid"/>"><custom:write name="list" property="booksetcode"/></a></td>
            <td><a href="../masterdata/ogm/OrgInfo.jsp?<%= OvalTools.randomURL() %>&orgid=<custom:write name="list" property="orgid"/>"><custom:write name="list" property="orgcode"/></a></td>
            <td><custom:write name="list" property="orgname"/></td>
          </tr>
          </logic:iterate>
        </table>
        <table width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td class="td_center">&nbsp; </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
</form>
</body>
</html>
